Windows 8.1 Pro Sysprep Error - "SYSPRP spopk.dll:: Failed to query pending CBS operations; hr = 0x80070422"

Hi

I've an issue with Sysprep tool when I'm trying to prepare my tablet which is running on Windows 8.1 Pro (64-bit). Here is the information from the setupact.log file

2015-07-14 10:26:41, Info                  SYSPRP ========================================================
2015-07-14 10:26:41, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
2015-07-14 10:26:41, Info                  SYSPRP ========================================================
2015-07-14 10:26:41, Info       [0x0f004d] SYSPRP The time is now 2015-07-14 10:26:41
2015-07-14 10:26:41, Info       [0x0f004e] SYSPRP Initialized SysPrep log at c:\windows\system32\sysprep\Panther
2015-07-14 10:26:41, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2015-07-14 10:26:41, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file c:\windows\system32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2015-07-14 10:26:41, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2015-07-14 10:26:41, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2015-07-14 10:26:41, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2015-07-14 10:26:41, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2015-07-14 10:26:41, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
2015-07-14 10:26:41, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2015-07-14 10:26:41, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2015-07-14 10:26:41, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-07-14 10:26:41, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
2015-07-14 10:26:41, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
2015-07-14 10:26:41, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2015-07-14 10:26:41, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-07-14 10:26:41, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
2015-07-14 10:26:41, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2015-07-14 10:26:41, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
2015-07-14 10:26:41, Error      [0x0f00b0] SYSPRP spopk.dll:: Failed to query pending CBS operations; hr = 0x80070422
2015-07-14 10:26:41, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x422
2015-07-14 10:26:41, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x422
2015-07-14 10:26:41, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x422
2015-07-14 10:26:41, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x422
2015-07-14 10:26:41, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x80070422
2015-07-14 10:26:42, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2015-07-14 10:26:42, Info       [0x0f004d] SYSPRP The time is now 2015-07-14 10:26:42


And more information from the setuperr.log file


2015-07-14 10:26:41, Error      [0x0f00b0] SYSPRP spopk.dll:: Failed to query pending CBS operations; hr = 0x80070422
2015-07-14 10:26:41, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x422
2015-07-14 10:26:41, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x422
2015-07-14 10:26:41, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x422
2015-07-14 10:26:41, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x422
2015-07-14 10:26:41, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x80070422

I also had a look at the following link:

https://social.technet.microsoft.com/Forums/office/en-US/ed6e91b6-4782-46d1-8111-1cec1fce613b/sysprep-error-with-windows-81?forum=w8itprogeneral

But does not help much as there's no 'upgrade' key in my registry.

Please advise. Thanks.

July 13th, 2015 10:24pm

Hi,

Seems like this problem occurs while executing 'Sysprep_Clean_Validate_Opk' from spopk.dll, it validates actions from Cleanup.xml. Unfortunately no similar cases was found.

Make sure you didnt sysprep this machine over 3 times. And confirm that Module installer service is set to Auto or Manual start.

And we wonder if you have validated or modified cleanup.xml. Try another xml file/spopk.dll from a clean Windows 8.1 machine then check the result.

Regards,

D. Wu

Free Windows Admin Tool Kit Click here and download it now
July 16th, 2015 9:18pm

Hello,

Are there pending updates waiting to be installed> seeing pending CBS operations in the log file?

Is the machine joined to the domain, try dis-joining from the domain?

July 17th, 2015 8:28pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics